Skip to main content

Creating Messages

Introduction​

How to send messages with the custom template

Syntax​

templateId = 'ccChat',
multiline = false,
args = {
color,
icon,
subtitle,
timestamp,
msg
}

Arguments​

ArgumentData TypeExplanation
colorStringAccent Color of the message; Accepts HEX, RGB & HSL.
iconStringThe icon on the message found at FontAwesome.
subtitleStringThe string next to the icon.
timestampStringThe string on the top right of the message.
msgStringThe main message being sent.

Example​

-- Server
TriggerClientEvent('chat:addMessage', -1 , {
templateId = 'ccChat',
multiline = false,
args = {
'#e74c3c',
'fa-solid fa-fire',
'Lit',
'',
'This message is lit!'
}
})

Example Result​

image